package com.cool.cloud.service.impl;

import com.alipay.api.AlipayApiException;
import com.cool.cloud.entity.AlipayBean;
import com.cool.cloud.service.PayService;
import com.cool.cloud.utils.AlipayUtil;
import org.springframework.stereotype.Service;


/**
 * @InterfaceName: PayServiceImpl
 * @Description: 支付宝支付接口实现类
 * @author: laijunji
 * @date 2021/5/21 22:15
 * @Version: 1.0
 **/
@Service(value = "alipayOrderService")
public class PayServiceImpl implements PayService {

    @Override
    public String alipy(AlipayBean alipayBean) throws AlipayApiException {
        // TODO Auto-generated method stub
        return AlipayUtil.connect(alipayBean);
    }
}
